//
// Created by fanghr on 17-12-27.
//

#ifndef PROJECT_CAM_GUESTURE_H
#define PROJECT_CAM_GUESTURE_H

#include "../../include.h"

class cam_gesture {
public:
    struct table_t {
        friend class boost::serialization::access;

        int num;
        float x, y, z;

        template<class Archive>
        void serialize(Archive &ar, const unsigned int) {
            ar & x & y & z;
        }
    };

private:
    friend class boost::serialization::access;

    table_t table;

    template<class Archive>
    void serialize(Archive &ar, const unsigned int) {
        ar & table;
    }

public:
    cam_gesture() {}

    cam_gesture(int num, float x, float y, float z) {
        table.num = num;
        table.x = x;
        table.y = y;
        table.z = z;
    }

    table_t get() {
        return table;
    }

};


#endif //PROJECT_CAM_GUESTURE_H
